Fitting a Flexible Dirichlet distribution.
fd.est(x, ini.iter = 50, final.iter = 100)
A matrix or a dataframe containing the compositional data.
Number of iterations for the initial SEM step. Default value is 50.
Number of iterations for the final EM step. Default value is 100.
A list including:
Estimated values of the parameter vector Alpha.
Estimated values of the parameter vector P.
Estimated value of the parameter Tau.
The Log-likelihood value.
For more information see the references.
Ongaro, A. and Migliorati, S. (2013) A generalization of the Dirichlet distribution. Journal of Multivariate Analysis, 114, 412--426.
Migliorati, S., Ongaro, A. and Monti, G. S. (2016) A structured Dirichlet mixture model for compositional data: inferential and applicative issues. Statistics and Computing.
# NOT RUN {
x <- rfd(n = 50, a = c(12, 11, 10), p = c(0.25, 0.25, 0.5), tau = 4 )
ela <- fd.est(x,ini.iter = 10, final.iter = 20)
ela
# }
Run the code above in your browser using DataLab